import sympy
import numpy as ns
from sympy import oo

n = sympy.Symbol('n')
f = (n+1)/(2*n)
print(sympy.limit(f,n,oo))